<?php
namespace Common\Model;
use Think\Model;
class ShopModel extends Model {

    protected $_validate = array(
        array('shop_name','require','店铺名称必需填写！'),
        array('company','require','公司名称必需填写！'),
//        array('keeper','require','店主必需填写！'),
//        array('password','require','密码必需填写！',self::EXISTS_VALIDATE,'regex',self::MODEL_INSERT),
//        array('phone', '/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1})|(14[0-9]{1}))+\d{8})$/', '店主手机号码格式不正确！',1 ,'regex' ),
        array('tel', '/^0\d{2,3}-?\d{7,8}$/', '固定电话格式不正确！',1 ,'regex' ),
        array('address','require','店铺地址必需填写！'),
        array('bank_no','require','银行卡号所有人必需填写！'),
        array('bank_user_name','require','银行卡号所有人必需填写！'),
        array('license_img','require','营业执照必需上传！'),
        array('create_desc','require','开店说明必需填写！'),
        array('state',array(-1,0,1),'审核状态的值非法！',2,'in'),
        array('state_desc','require','审核说明必需填写！',self::EXISTS_VALIDATE,'regex',self::MODEL_UPDATE)
    );





}